/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.asu.cse360.service.client;

import edu.asu.cse360.model.MenuItem;
import edu.asu.cse360.model.Restaurant;
import edu.asu.cse360.service.MenuItemService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;


public class ClientMenuItemService implements MenuItemService{

    @Autowired
    private List<MenuItem> menuItems;

    @Override
    public List<MenuItem> getAvailableMenuItems(Restaurant res) {
        return menuItems;
    }

    @Override
    public MenuItem save(MenuItem menuItem) {
        // do nothing.
        return menuItem;
    }

    @Override
    public MenuItem remove(MenuItem menuItem) {
        menuItems.remove(menuItem);
        return menuItem;
    }

}
